<?php
/**
 * Created by PhpStorm.
 * User: janke
 * Date: 17-3-22
 * Time: 下午11:26
 */

namespace app\models;


use yii\base\Model;

class SignUpForm extends Model
{


    public static function findByUserName($userName)
    {
        $user = User::findOne(['username' => $userName]);
        return $user ? $user : false;
    }


    public function signUp($postData)
    {
        $resp = User::signUp($postData);
        return $resp? $resp : false;
    }


}